package net.onmotion.network;

import java.io.ByteArrayOutputStream;
import java.io.DataOutputStream;

public class NetworkData {

    protected ByteArrayOutputStream baos = null;
    protected DataOutputStream dos = null;
    protected boolean first = true;
    protected String contentType;
    protected String boundary;
    protected String method;

    public String getMethod() {
      return method;
    }
    
    public byte[] getData() {        
        return baos.toByteArray();
    }
    
    public int getLength() {
        return baos.size();
    }
    
    public String getUrlExtra() {
      return "";
    }
    
    public void clear(){
        first = true;
        baos.reset();
    }

    public NetworkData() {      
    }

}